Ext.define('Admin.view.system.vote.UserVoteForm', {
    extend: 'Ext.FormPanel',
    layout: {
        type:'vbox',
        align:'stretch'
    },
    border:false,
    bodyPadding: 10,
    defaults: {
        labelWidth: 80,
        labelAlign:'right',
        labelSeparator: '',
        allowBlank :false,
	    msgTarget: 'side'
    },
    xtype: 'user-vote-form',
    items: [
    	{	xtype:'hiddenfield',name:'id'	},
        {
            xtype: 'textfield',
            name:'vote_name',
            fieldLabel: '投票标题',
            emptyText:'请输入投票标题',
            maxLength:100,
            readOnly:true
        },
        {
	        xtype: 'textareafield',
	        name:'vote_content',
	        fieldLabel: '投票简介',
	        allowBlank:false,
	        rows:2,
	        readOnly:true
	    },
	    {
	        xtype: 'datetimefield',
	        format:'Y-m-d H:i:s',
	        fieldLabel:'开始时间',
	        todayText: '选择当前时间',
            hourText: '小时',
            minuteText: '分钟',
	        name: 'start_time',
	        readOnly:true
	    },
	    {
	        xtype: 'datetimefield',
	        format:'Y-m-d H:i:s',
	        fieldLabel:'结束时间',
	        todayText: '选择当前时间',
            hourText: '小时',
            minuteText: '分钟',
	        name: 'end_time',
	        readOnly:true
	    }
    ]
});
